#!/usr/bin/env bash
export GO111MODULE=on

function linux() {
    CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o api_report main.go
    [[ $? -eq 0 ]] && echo "build success"
}

case $1 in
  linux)
    linux;;
  *)
    echo "usage: ./build.sh linux"
esac
